package net.ssta.util.bill.chargeobj;

import net.ssta.util.bill.UserBill;
import net.ssta.util.bill.UserBillException;

import org.apache.log4j.Logger;

public class ExpertCharge implements ChargeInterface{
	private static Logger log = Logger.getLogger(ExpertCharge.class.getClass()); 
	private String expertId;
	
	/**
	 * 
	 * @param _cgId
	 */
	public ExpertCharge(String _expertId){
		expertId=_expertId;
	}
	
	/**
	 * 根据扣费对象的主键，来判断其所需的费用
	 * @param chargeId
	 * @return
	 */
	public int calCostNumber()throws UserBillException{
		return CostNumberConstants.getExpert();
	}
	
	/**
	 * 根据账单来扣费
	 * @param bill
	 * @throws UserBillException
	 */
	public String getChargeType(){
		return "kjcg";
	}
	
	public UserBill initBill(UserBill bill){
		bill.setInfoId(expertId);
		bill.setCType(this.getChargeType());
		return bill;
	}

}
